<?php


namespace App\Exception;

use Throwable;

class BizException extends \Exception
{
    private $data;

    public function __construct($message = "", $code = 0, $extData = null, Throwable $previous = null)
    {
        $this->data = $extData;
        parent::__construct($message, $code, $previous);
    }

    public function getData()
    {
        return $this->data;
    }
}
